A=[2 4 4 4; 0 1 -2 -2; 2 3 0 0];
A(3,:)=A(3,:)-A(1,:);
A(3,:)=A(3,:)+A(2,:);
A